package com.eobjectsoft.etranslator;

import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;

public class ETranslatorPlugin extends AbstractUIPlugin
{
	public static final String PLUGIN_ID = "com.eobjectsoft.etranslator";
    private static ETranslatorPlugin plugin;

    public ETranslatorPlugin()
    {
        plugin = this;
    }

    public void start(BundleContext context)
        throws Exception
    {
        super.start(context);
    }

    public void stop(BundleContext context)
        throws Exception
    {
        plugin = null;
        super.stop(context);
    }

    public static ETranslatorPlugin getDefault()
    {
        return plugin;
    }

    public static ImageDescriptor getImageDescriptor(String path)
    {
        return imageDescriptorFromPlugin(PLUGIN_ID, path);
    }

    
}
